package com.example.threadSimple;

import java.util.Optional;

import lombok.Data;

/**
 * @Author: Ah Nan
 * @Description: 支付参数封装
 * @Date: 16:24 2020/6/28
 */
@Data
public class PaymentModel {

    private int paymentAmount;

    private String callUrl;

    private String position;


    public PaymentModel() {
    }

    public PaymentModel(int paymentAmount, String callUrl) {
        this.paymentAmount = paymentAmount;
        this.callUrl = callUrl;
    }

    public Optional<String> getPosition() {
        return Optional.ofNullable(position);
    }
}
